<div id="sidebar">
    <a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard</a>
    <ul>
        <li ><a href="<?php echo site_url(); ?>"><i class="icon icon-home"></i> <span>Dashboard</span></a></li>
        <li class="submenu">
            <a href="#"><i class="icon icon-th-list"></i> <span>Data Soal</span></a>
            <ul>
                <li><a href="<?php echo site_url('admin_home/soal'); ?>"><i class="icon icon-th"></i> Lihat Data Soal</a></li>
                <li><a href="<?php echo site_url('admin_home/tambah_jenis'); ?>"><i class="icon icon-plus"></i> Tambah Data Soal</a></li>
            </ul>
        </li>
        <li class="submenu active open">
            <a href="#"><i class="icon-folder-open icon-white"></i> <span>Data Siswa</span></a>
            <ul>
                <li class="active"><a href="<?php echo site_url('admin_siswa'); ?>"><i class="icon-tasks"></i> Lihat Data Siswa</a></li>
                <li><a href="<?php echo site_url('admin_siswa/tambah'); ?>"><i class="icon-plus-sign"></i> Tambah Data Siswa</a></li>
            </ul>
        </li>
        <li>
            <a href="<?php echo site_url('admin_home/help'); ?>"><i class="icon-question-sign"></i>Help</a>
        </li>
    </ul>
</div>
<!-- Sidebar Active End -->
<div id="content">
    <div id="content-header">
        <h1>Data Siswa</h1>
        <div class="btn-group">
        </div>
    </div>
    <div id="breadcrumb">
        <a href="#" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
        <a href="#" class="current"> Lihat Data Siswa</a>
    </div>    
    <!-- end of breadcumb --> 
    <div class="container-fluid">
        <br /> 
        <div class="container">
            <a class="btn btn-success" href="<?php echo site_url('/admin_siswa/tambah') ?>"><i class="icon-pencil"></i> Tambah Siswa</a>
            <?php echo form_open("admin_siswa/cari", 'class="navbar-form pull-right span4"'); ?>
            <div class="input-append">
                <input class="span2" id="appendedInputButton" type="text" placeholder="Cari siswa.." name="cari">
                <button class="btn" type="submit"><i class="icon-search"></i></button>
            </div>
            <?php echo form_close(); ?>    
        </div>
        <div style="clear:both; width:100%;"></div>
        <section>
            <table class="table table-condensed table-hover table-bordered">
                <thead>
                    <tr>
                        <th>No.</th>
                        <th>No Induk</th>
                        <th class="span6">Nama Siswa</th>
                        <th class="span4">Password</th>
                        <th>Aksi</th>
                    </tr>
                </thead>
                <tbody>
                    <?php
                    $no = $tot + 1;
                    if ($data_get == NULL) {
                        ?>
                    <div class="alert alert-error">
                        <button type="button" class="close" data-dismiss="alert">x</button>
                        <h4>Peringatan !</h4>
                        <p>Data Siswa yang anda cari tidak ada atau masih kosong </p>
                    </div>
                    <?php
                } else {


                    foreach ($data_get as $dg) {
                        ?>
                        <tr>
                            <td><?php echo $no++ ?></td>
                            <td><?php echo $dg->nomor_induk; ?></td>
                            <td class="span6"><?php echo $dg->nama; ?></td>
                            <td class="span4"><?php echo $dg->password; ?></td>
                            <td>
                                <div class="btn-group">
                                    <a class="btn btn-small small-box" href="<?php echo site_url('admin_siswa/edit/' . $dg->id_siswa); ?>"><i class="icon-list-alt"></i> Edit Siswa </a>
                                    <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#"><span class="caret"></span></a>
                                    <ul class="dropdown-menu ">
                                        <li> <a href="<?php echo site_url('admin_siswa/hapus/' . $dg->id_siswa); ?>" onclick="return confirm('Anda yakin ?');"> <i class="icon-trash"></i> Hapus Siswa</a></li>
                                    </ul>
                                </div>
                            </td>
                        </tr>
                        <?php
                    }
                }
                ?>
                </tbody>
            </table>
            <div class="pagination pagination-centered" style="height: 5px">
                <?php echo $paginator; ?>
            </div>
        </section>    
    </div>